package org.imaginedays.java.design.patter.newsimplefactory;

public class CashFactory {

	public static CashSuper createCashAccept(CashType type) {

		CashSuper cashSuper = null;

		switch (type) {
		case cashNormal:
           cashSuper = new CashNormal();
			break;

		case cashRebate:
            cashSuper = new CashRebate("0.8");
			break;

		case cashReturn:
            cashSuper =  new CashReturn("300", "100");
			break;
		}
      return cashSuper;
	}

}
